#!/bin/bash

### BEGIN INIT INFO
# Provides:          uwsgi_service.sh
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts the nginx web server
# Description:       starts nginx using start-stop-daemon
### END INIT INFO

export app_path="mysite"

echo "/usr/local/bin/uwsgi --ini /var/www/$app_path/uwsgi.ini"

/usr/local/bin/uwsgi --ini /var/www/$app_path/uwsgi.ini --chdir=/var/www/$app_path --module=$app_path.wsgi --touch-reload=/var/www/$app_path/readme.txt


exit 0
